<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class LuoAdminUser extends Model {
    use SoftDeletes;

    protected $fillable = ['luo_id', 'name', 'tel'];
    protected $dates = ['deleted_at'];

    public static function add($id, $name, $tel) {
        return LuoAdminUser::create([
            'luo_id'    =>  $id,
            'name'      =>  $name,
            'tel'       =>  $tel,
        ]);
    }
}
